package com.partner.frame;


public abstract class BaseService<T>
{
   public final static String PORTRAIT_FILE_UPLOAD_PATH = "/upload/custom/portrait";
   public abstract BaseMapper<T> getServiceMapper();

   /*
   
   
   public T getById(Object id) throws Exception
   {
      return getServiceMapper().getById(id);
   }
   
   public void add(T t) throws Exception
   {
      getServiceMapper().add(t);
   }

   public void update(T t) throws Exception
   {
      getServiceMapper().update(t);
   }
   
   public void deleteById(Object objId) throws Exception
   {
      getServiceMapper().delete(objId);
   }
   
   public void deleteByMap(Map<String, Object> mapQuery) throws Exception
   {
      getServiceMapper().deleteByMap(mapQuery);
   }
   
   public void deleteByIdArray(Object... idArray) throws Exception
   {
      if(idArray == null || idArray.length == 0)
         return;
      
      getServiceMapper().deleteByIdArray(idArray);
   }

   public int queryCount(Map<String, Object> mapQuery) throws Exception
   {
      return getServiceMapper().queryCount(mapQuery);
   }

   public List<T> queryPageList(Map<String, Object> mapQuery) throws Exception
   {
      return getServiceMapper().queryPageList(mapQuery);
   }

   public List<T> queryList(Map<String, Object> mapQuery) throws Exception
   {
      return getServiceMapper().queryList(mapQuery);
   }
   
   public List<T> queryAll()
   {
      return getServiceMapper().queryAll();
   }*/

}
